﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LunarSF.SHomeWorkshop.LunarMarkdownEditor
{
    public class ChmContentEntry
    {
        public FileInfo FileInfo { get; set; }
        public DirectoryInfo DirectoryInfo { get; set; }
        public bool IsFile { get; set; }
        public bool IsDirectory { get; set; }
        public string ShortName { get; set; }
        public string Title { get; set; }
        public string FolderHtmlFile { get; set; }
    }

    public class ChmContentEntryCompare : IComparer<ChmContentEntry>
    {
        public int Compare(ChmContentEntry x, ChmContentEntry y)
        {
            return x.ShortName.CompareTo(y.ShortName);
        }
    }
}
